package com.edu.solr_news.service;

import com.edu.solr_news.bean.News;
import com.edu.solr_news.util.Pageutil;
import org.apache.solr.client.solrj.SolrServerException;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

public interface NewsSearceSevice {

     public Pageutil search(String keyword,String page,String limit,String sort) throws IOException, SolrServerException;

     public Pageutil searchForImport(String keyword,String page,String limit,String sort) throws  IOException,SolrServerException;

     public News searchById(String id) throws IOException, SolrServerException;

     public Pageutil newNews(String page,String limit) throws IOException, SolrServerException;

     public Pageutil hotNews(String page, String limit);

     public String indexCiyun(HttpServletRequest request,String starttime,String endtime,String wordnum) throws IOException, SolrServerException;

     public String indexEchart(String starttime,String endtime);

}
